home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / repair / add_missing.h next >
C/C++ Source or Header  |  2006-01-09  |  850b  |  37 lines

  1. /* Copyright 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
  2.    reiser4progs/COPYING.
  3.    
  4.    repair/add_missing.h -- the common structures and methods for insertion
  5.    leaves and extent item from twigs unconnected from the tree. */
  6.  
  7. #ifndef ADD_MISSING_H
  8. #define ADD_MISSING_H
  9.  
  10. #include <time.h>
  11. #include <repair/librepair.h>
  12.  
  13. /* Statistics gathered during the pass. */
  14. typedef struct repair_am_stat {
  15.     uint64_t read_leaves, by_leaf, by_item_leaves;
  16.     uint64_t read_twigs,  by_twig, by_item_twigs, empty;
  17.  
  18.     uint64_t *files;
  19.     time_t time;
  20. } repair_am_stat_t;
  21.  
  22. /* Add missing. */
  23. typedef struct repair_am {
  24.     repair_data_t *repair;
  25.     
  26.     reiser4_bitmap_t *bm_used;
  27.     reiser4_bitmap_t *bm_twig;
  28.     reiser4_bitmap_t *bm_leaf;
  29.     
  30.     repair_am_stat_t stat;
  31.     aal_gauge_t *gauge;
  32. } repair_am_t;
  33.  
  34. extern errno_t repair_add_missing(repair_am_t *am);
  35.  
  36. #endif
  37.